package com.party.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.party.business.mapper.TheoreticalDoctrineMapper;
import com.party.business.domain.TheoreticalDoctrine;
import com.party.business.service.ITheoreticalDoctrineService;

/**
 * 理论法规Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class TheoreticalDoctrineServiceImpl extends ServiceImpl<TheoreticalDoctrineMapper,TheoreticalDoctrine>  implements ITheoreticalDoctrineService
{
    @Autowired
    private TheoreticalDoctrineMapper theoreticalDoctrineMapper;

    /**
     * 查询理论法规
     *
     * @param id 理论法规主键
     * @return 理论法规
     */
    @Override
    public TheoreticalDoctrine selectTheoreticalDoctrineById(Long id)
    {
        return theoreticalDoctrineMapper.selectTheoreticalDoctrineById(id);
    }

    /**
     * 查询理论法规列表
     *
     * @param theoreticalDoctrine 理论法规
     * @return 理论法规
     */
    @Override
    public List<TheoreticalDoctrine> selectTheoreticalDoctrineList(TheoreticalDoctrine theoreticalDoctrine)
    {
        return theoreticalDoctrineMapper.selectTheoreticalDoctrineList(theoreticalDoctrine);
    }

    /**
     * 新增理论法规
     *
     * @param theoreticalDoctrine 理论法规
     * @return 结果
     */
    @Override
    public int insertTheoreticalDoctrine(TheoreticalDoctrine theoreticalDoctrine)
    {
            return theoreticalDoctrineMapper.insertTheoreticalDoctrine(theoreticalDoctrine);
    }

    /**
     * 修改理论法规
     *
     * @param theoreticalDoctrine 理论法规
     * @return 结果
     */
    @Override
    public int updateTheoreticalDoctrine(TheoreticalDoctrine theoreticalDoctrine)
    {
        return theoreticalDoctrineMapper.updateTheoreticalDoctrine(theoreticalDoctrine);
    }

    /**
     * 批量删除理论法规
     *
     * @param ids 需要删除的理论法规主键
     * @return 结果
     */
    @Override
    public int deleteTheoreticalDoctrineByIds(Long[] ids)
    {
        return theoreticalDoctrineMapper.deleteTheoreticalDoctrineByIds(ids);
    }

    /**
     * 删除理论法规信息
     *
     * @param id 理论法规主键
     * @return 结果
     */
    @Override
    public int deleteTheoreticalDoctrineById(Long id)
    {
        return theoreticalDoctrineMapper.deleteTheoreticalDoctrineById(id);
    }
}
